﻿using Orchard.ContentManagement.MetaData;
using Orchard.Data.Migration;

namespace NGM.BlogML {
    public class Migrations : DataMigrationImpl {
        public int Create() {
            SchemaBuilder.CreateTable("BlogMLSettingsPartRecord", table => table
                .ContentPartRecord()
                .Column<string>("AttachmentDirectory")
                .Column<string>("ExportDirectory")
               );

            ContentDefinitionManager.AlterTypeDefinition("Blog",
               cfg => cfg
                   .WithPart("ExportContainerPart")
                );
        
            return 1;
        }
    }
}